package com.zy;

import com.zy.config.SpringConfig;
import com.zy.mapper.DataMapper;

import com.zy.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import java.util.List;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-11 周一 18:35
 * @since 17
 */
@SpringJUnitConfig(SpringConfig.class)
public class AppTest {
    @Autowired
    DataMapper dm;
    @Autowired
    UserMapper um;
    @Test
    public void t1(){
        List<String> tbs = dm.tbs();
        System.out.println(tbs);
    }
    @Test
    public void t2(){
        um.queryUser().forEach(user -> System.out.println(user.getName()));
    }
}
